package com.pingba.serviceImpl.location;

import com.pingba.dao.BaseDao;
import com.pingba.dao.location.DistrictDao;
import com.pingba.entity.location.City;
import com.pingba.entity.location.District;
import com.pingba.service.location.DistrictService;
import com.pingba.serviceImpl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2015/12/23 0023.
 */
@Service("districtService")
public class DistrictServiceImpl extends BaseServiceImpl<District, Long> implements DistrictService {

    @Autowired
    private DistrictDao districtDao;
    @Override
    public BaseDao<District, Long> getDao() {
        return districtDao;
    }

    @Override
    public List<District> getDistrictOfCity(City city) {
        return districtDao.getDistrictOfCity(city);
    }
}
